package com.uwlaser.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author LiuZhiHui
 * @version 1.0
 * @description: TODO 字典值
 * @date 2022/3/12 10:27
 */
@Getter
@AllArgsConstructor
public enum DictValueEnum {

    //工厂模型
    MODEL_TYPE_FACTROY("工厂","0"),MODEL_TYPE_WORKSHOP("车间","1"),MODEL_TYPE_LINE("产线","2"),MODEL_TYPE_SECTION("工段","3"),MODEL_TYPE_STATION("工位","4"),MODEL_TYPE_DEVICE("设备","5"),
    //工单状态
    WORK_STATUS_NOT("未下发","0"),WORK_STATUS_STOP("已停止","1"),WORK_STATUS_BEGIN("生产中","2"),WORK_STATUS_FINISH("已完成","3"),
    //订单状态
    ORDER_STATUS_NOT("未生成","0"),ORDER_STATUS_CREATE("已生成","1"),ORDER_STATUS_FINISH("已完成","2"),
    // 是否
    YES("是","1"),NO("否","0"),
    // 禁用/启用
    START ("启用","0"),DISABLED ("禁用","1"),
    //编码规则类型
    RULE_TYPE_GD("固定","1"),RULE_TYPE_DATE("日期","2"),RULE_TYPE_SQL("SQL","3"),RULE_TYPE_NUM("序列号","4"),RULE_TYPE_OTHER("订单号","5"),
    //结果状态
    RESULT_NG("不合格","0"),RESULT_OK("合格","1"),RESULT_UN("未完成","2"),RESULT_SC("报废","3"),
    //返修标识
    REPAIR_SIGN_NORMAL("正常模式","0"),REPAIR_SIGN_REPAIR("返修模式","1"),
    //扫码规则类型
    VERIFY_TYPE_GD("固定匹配","1"),VERIFY_TYPE_ZZ("正则匹配","2"),VERIFY_TYPE_ZZS("简易正则","3"),
    //工步类型
    STEP_TYPE_SINGLE("扫单体码","1"),STEP_TYPE_BATCH("扫批次码","2"),STEP_TYPE_SCREW("拧紧工步","3"),STEP_TYPE_EMP("扫员工码","4"),STEP_TYPE_OTHER("其他","5"),

    //数据来源
    DATASOURCES_LOCAL("本地","1"),DATASOURCES_ISSUE("下发","2"),
    //设备文件类型
    EQ_APP_TYPE_IMG("图片","2"),EQ_APP_TYPE_FILE("文件","1"),
    //物料类型
    MATERIAL_TYPE_SINGLE("单件","0"),MATERIAL_TYPE_BATCH("批次","1"),

    //设备使用状态 1：出租、2:在用、3:禁用、4:故障-已删、0:闲置
    USE_STATE_TENEMENTAL("出租","1"),USE_STATE_USE("在用","2"),USE_STATE_DISABLED("禁用","3"),USE_STATE_DEL("故障","4"),USE_STATE_LEISURE("闲置","0"),

    //设备等级  0:关键、1：重要、2：一般
    DEVICE_GRADE_PIVOTAL("关键","0"),DEVICE_GRADE_VITAL("重要","1"),DEVICE_GRADE_GENERIC("一般","2"),

    //设备文件类型
    DEVICE_FILE_TYPE_FILE("设备文件","1"),DEVICE_FILE_TYPE_IMG("设备头像","2"),

    //设备在线状态
    DEVICE_ON_LINE("在线","1"),DEVICE_OFF_LINE("离线","0"),

    //设备状态
    DEVICE_STATUS_STOP("停机","6"),

    //报警状态
    ALARM_STATUS_Y("发生报警","1"),ALARM_STATUS_N("解除报警","0"),

    //请求是否成功
    IS_SUCCESS_Y("成功","1"),IS_SUCCESS_N("失败","0"),

    //HTTP请求方式
    METHOD_GET("GET","GET"),METHOD_POST("POST","POST"),METHOD_DELETE("DELETE","DELETE"),METHOD_PUT("PUT","PUT");




    private final String label;

    private final String value;
}
